package Tengxun_News;
import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
public class test2 {
    public static void main(String[] args) throws Exception {
        String url ="http://passport2.chaoxing.com/login?fid=&refer=http://i.mooc.chaoxing.com";
        Connection connection = Jsoup.connect(url);
        Document doc = connection.get();
        Elements ele = doc.select("#numVerCode");
        System.out.println(ele);
        for (Element element : ele) {
        String img = element.attr("src");
        System.out.println(img);
        }
    }
}
